package com.macro.mall.model;

import java.util.ArrayList;
import java.util.List;

public class UmsMemberExtendExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UmsMemberExtendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(Long value) {
            addCriterion("member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(Long value) {
            addCriterion("member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(Long value) {
            addCriterion("member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(Long value) {
            addCriterion("member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<Long> values) {
            addCriterion("member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<Long> values) {
            addCriterion("member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(Long value1, Long value2) {
            addCriterion("member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andCheckinDateIsNull() {
            addCriterion("checkin_date is null");
            return (Criteria) this;
        }

        public Criteria andCheckinDateIsNotNull() {
            addCriterion("checkin_date is not null");
            return (Criteria) this;
        }

        public Criteria andCheckinDateEqualTo(String value) {
            addCriterion("checkin_date =", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateNotEqualTo(String value) {
            addCriterion("checkin_date <>", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateGreaterThan(String value) {
            addCriterion("checkin_date >", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateGreaterThanOrEqualTo(String value) {
            addCriterion("checkin_date >=", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateLessThan(String value) {
            addCriterion("checkin_date <", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateLessThanOrEqualTo(String value) {
            addCriterion("checkin_date <=", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateLike(String value) {
            addCriterion("checkin_date like", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateNotLike(String value) {
            addCriterion("checkin_date not like", value, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateIn(List<String> values) {
            addCriterion("checkin_date in", values, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateNotIn(List<String> values) {
            addCriterion("checkin_date not in", values, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateBetween(String value1, String value2) {
            addCriterion("checkin_date between", value1, value2, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andCheckinDateNotBetween(String value1, String value2) {
            addCriterion("checkin_date not between", value1, value2, "checkinDate");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoIsNull() {
            addCriterion("Identity_info is null");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoIsNotNull() {
            addCriterion("Identity_info is not null");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoEqualTo(String value) {
            addCriterion("Identity_info =", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNotEqualTo(String value) {
            addCriterion("Identity_info <>", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoGreaterThan(String value) {
            addCriterion("Identity_info >", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoGreaterThanOrEqualTo(String value) {
            addCriterion("Identity_info >=", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoLessThan(String value) {
            addCriterion("Identity_info <", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoLessThanOrEqualTo(String value) {
            addCriterion("Identity_info <=", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoLike(String value) {
            addCriterion("Identity_info like", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNotLike(String value) {
            addCriterion("Identity_info not like", value, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoIn(List<String> values) {
            addCriterion("Identity_info in", values, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNotIn(List<String> values) {
            addCriterion("Identity_info not in", values, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoBetween(String value1, String value2) {
            addCriterion("Identity_info between", value1, value2, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNotBetween(String value1, String value2) {
            addCriterion("Identity_info not between", value1, value2, "identityInfo");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameIsNull() {
            addCriterion("Identity_info_name is null");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameIsNotNull() {
            addCriterion("Identity_info_name is not null");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameEqualTo(String value) {
            addCriterion("Identity_info_name =", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameNotEqualTo(String value) {
            addCriterion("Identity_info_name <>", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameGreaterThan(String value) {
            addCriterion("Identity_info_name >", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameGreaterThanOrEqualTo(String value) {
            addCriterion("Identity_info_name >=", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameLessThan(String value) {
            addCriterion("Identity_info_name <", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameLessThanOrEqualTo(String value) {
            addCriterion("Identity_info_name <=", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameLike(String value) {
            addCriterion("Identity_info_name like", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameNotLike(String value) {
            addCriterion("Identity_info_name not like", value, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameIn(List<String> values) {
            addCriterion("Identity_info_name in", values, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameNotIn(List<String> values) {
            addCriterion("Identity_info_name not in", values, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameBetween(String value1, String value2) {
            addCriterion("Identity_info_name between", value1, value2, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIdentityInfoNameNotBetween(String value1, String value2) {
            addCriterion("Identity_info_name not between", value1, value2, "identityInfoName");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerIsNull() {
            addCriterion("is_volunteer is null");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerIsNotNull() {
            addCriterion("is_volunteer is not null");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerEqualTo(String value) {
            addCriterion("is_volunteer =", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerNotEqualTo(String value) {
            addCriterion("is_volunteer <>", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerGreaterThan(String value) {
            addCriterion("is_volunteer >", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerGreaterThanOrEqualTo(String value) {
            addCriterion("is_volunteer >=", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerLessThan(String value) {
            addCriterion("is_volunteer <", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerLessThanOrEqualTo(String value) {
            addCriterion("is_volunteer <=", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerLike(String value) {
            addCriterion("is_volunteer like", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerNotLike(String value) {
            addCriterion("is_volunteer not like", value, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerIn(List<String> values) {
            addCriterion("is_volunteer in", values, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerNotIn(List<String> values) {
            addCriterion("is_volunteer not in", values, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerBetween(String value1, String value2) {
            addCriterion("is_volunteer between", value1, value2, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andIsVolunteerNotBetween(String value1, String value2) {
            addCriterion("is_volunteer not between", value1, value2, "isVolunteer");
            return (Criteria) this;
        }

        public Criteria andExtendStautsIsNull() {
            addCriterion("extend_stauts is null");
            return (Criteria) this;
        }

        public Criteria andExtendStautsIsNotNull() {
            addCriterion("extend_stauts is not null");
            return (Criteria) this;
        }

        public Criteria andExtendStautsEqualTo(String value) {
            addCriterion("extend_stauts =", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsNotEqualTo(String value) {
            addCriterion("extend_stauts <>", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsGreaterThan(String value) {
            addCriterion("extend_stauts >", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsGreaterThanOrEqualTo(String value) {
            addCriterion("extend_stauts >=", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsLessThan(String value) {
            addCriterion("extend_stauts <", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsLessThanOrEqualTo(String value) {
            addCriterion("extend_stauts <=", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsLike(String value) {
            addCriterion("extend_stauts like", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsNotLike(String value) {
            addCriterion("extend_stauts not like", value, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsIn(List<String> values) {
            addCriterion("extend_stauts in", values, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsNotIn(List<String> values) {
            addCriterion("extend_stauts not in", values, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsBetween(String value1, String value2) {
            addCriterion("extend_stauts between", value1, value2, "extendStauts");
            return (Criteria) this;
        }

        public Criteria andExtendStautsNotBetween(String value1, String value2) {
            addCriterion("extend_stauts not between", value1, value2, "extendStauts");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}